package gui;

import java.awt.Component;

import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;

public class HostsPane {
	//private JPanel hostsPane;
	private JScrollPane jscroll;
	
	HostsPane(DefaultMutableTreeNode tree){
		JTree jtree = new JTree(tree);
		jtree.setRootVisible(false);
		jscroll = new JScrollPane(jtree);
	}
	public void update(DefaultMutableTreeNode tree){
		
		JTree jtree = new JTree(tree);
		jtree.setRootVisible(false);
		jscroll = new JScrollPane(jtree);
		
		
	}
	public Component getTree() {
		// TODO Auto-generated method stub
		return jscroll;
	}
}
